{% load url from future %}

<form method="post" id="login-form" action="{% url 'django.contrib.auth.views.login' %}">
{% csrf_token %}

{% if form.errors %}
<p>Your username and password didn't match. Please try again.</p>
<input type="hidden" id="login-error" name="error" value="error" />
{% endif %}

<table>
<tr>
    <td>{{ form.username.label_tag }}</td>
    <td>{{ form.username }}</td>
</tr>
<tr>
    <td>{{ form.password.label_tag }}</td>
    <td>{{ form.password }}</td>
</tr>
</table>
<p id="error-message"></p>

<!--<input type="submit" value="login" />-->
<input type="hidden" name="next" value="{{ next }}" />
</form>
